import javax.swing.JButton;
import javax.swing.JFrame;



@SuppressWarnings("serial")
public class Ventana extends JFrame {
	
	private Controlador controlador;
	private JButton pulse;
	

	
	public void crearVista(){
		this.setTitle("Ejemplo Sencillo");
		this.setLayout(null);
		pulse= new JButton("Pulse Aqui");
		pulse.addActionListener(controlador);
		pulse.setBounds(45, 80, 120,40);
		this.add(pulse);
		this.setSize(220,200);
		this.setVisible(true);
	}


	public void setControlador(Controlador controlador2) {
		this.controlador=controlador2;
		
	}


	public JButton getPulse() {
		return pulse;
	}


	public void setPulse(JButton pulse) {
		this.pulse = pulse;
	}
	
}


	
	
